package display.screens {
	
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	
	import org.ilovecode.screen.Screen;
	import org.ilovecode.screen.ScreenName;
	
	/**
	 * Screen containing contact information.
	 * 
	 * @author Vjekoslav Ratkajec
	 */
	public class ContactScreen extends Screen {
		
		//{ region Stage elements
		
		//Button to call bank website
		public var zaneButton:SimpleButton;
		
		//} endregion
		
		//{ region Contructor and initialization
		
		/**
		 * Create new instance of Contact screen.
		 */
		public function ContactScreen() {
			super(ScreenName.CONTACT, "contactScreen");
		}
		
		override protected function addListeners():void
		{
			super.addListeners();
			zaneButton.addEventListener(MouseEvent.CLICK, zaneButton_Click);
		}
		
		override protected function removeListeners():void
		{
			super.removeListeners();
			zaneButton.removeEventListener(MouseEvent.CLICK, zaneButton_Click);
		}
		
		//} endregion
		
		//{ region Handlers
		
		/**
		 * Open bank site in new window.
		 * 
		 * @param	event	Click on zane logo.
		 */
		private function zaneButton_Click(event:MouseEvent):void {
			navigateToURL(new URLRequest("http://www.zane.hr/"), "_blank");
		}
		
		//} endregion
		
	}

}